package com.likai.jarscms.utils;

import org.apache.shiro.crypto.hash.Hash;
import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.UUID;

/**
 * Created by likai on 2018/10/14.
 */
public class Md5Util {

    /**
     * md5加密
     * @param password 要加密的字符串
     * @param salt 盐值
     * @return 加密后的字符串
     */
    public static String md5(String password,String salt) {
        return new Md5Hash(password,salt).toString() ;
    }

}
